/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package heartsgamejava;

import java.awt.Color;
import java.awt.Container;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JSlider;

/**
 *
 * @author 0812627
 */
public class Main extends JFrame {
    final private int PH=800;
    final private int yresolusion=600;
    final private int cardwidth=100;
    final private int cardheight=135;

	private JLabel[] p1;

	private Container mainPanel ;
	private JLabel note;
	private JButton mybutton;
	private JLabel[] score;
	private Boolean showComCard=false;
	private JSlider slider;
        public Main() {
        
        setDefaultCloseOperation(EXIT_ON_CLOSE);
	setResizable(false);
	setVisible(true);
	setSize(1000,700);

         
    }
    public static void main(String[] args) {
     JFrame frame = new Main();                              //hàm khởi tạo cửa sổ
    frame.setTitle("GameHeard");                            //set tiêu đề cửa sổ
     frame.setLocationRelativeTo(null); // Center the frame
     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    HeartsStaticObject h = new HeartsStaticObject();
    HeartsStaticObject.heartDeckStatic.createListCard();
    HeartsStaticObject.heartDeckStatic.dealCardsToPlayer();
   frame.setBackground(Color.WHITE);
     HeartsGamePanel gamePanel = new HeartsGamePanel();
     frame.add(gamePanel);
     frame.setVisible(true);      
   }

}
